// 创建数据库链接
let mysql = require('mysql2');
let pool = mysql.createPool({
    host:'localhost',
    database:'moonchart',
    user:'root',
    password:'moon123456',
    // 连接池最大连接数
    connectionLimit:5
})
module.exports = pool.promise();
